package com.redepronik.medisys.cithis.entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the responsablepacientes database table.
 * 
 */
@Entity
@Table(name="responsablepacientes")
@NamedQuery(name="Responsablepaciente.findAll", query="SELECT r FROM Responsablepaciente r")
public class ResponsablePaciente implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="RESPONSABLEPACIENTES_RESPONSABLEPACIENTEID_GENERATOR" )
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="RESPONSABLEPACIENTES_RESPONSABLEPACIENTEID_GENERATOR")
	@Column(unique=true, nullable=false)
	private Integer responsablepacienteid;

	//bi-directional many-to-one association to Paciente
	@ManyToOne
	@JoinColumn(name="pacienteid", nullable=false)
	private Paciente paciente;

	//bi-directional many-to-one association to Relacione
	@ManyToOne
	@JoinColumn(name="relacionesid", nullable=false)
	private Relacion relacione;

	//bi-directional many-to-one association to Responsable
	@ManyToOne
	@JoinColumn(name="responsableid", nullable=false)
	private Responsable responsable;

	public ResponsablePaciente() {
	}

	public Integer getResponsablepacienteid() {
		return this.responsablepacienteid;
	}

	public void setResponsablepacienteid(Integer responsablepacienteid) {
		this.responsablepacienteid = responsablepacienteid;
	}

	public Paciente getPaciente() {
		return this.paciente;
	}

	public void setPaciente(Paciente paciente) {
		this.paciente = paciente;
	}

	public Relacion getRelacione() {
		return this.relacione;
	}

	public void setRelacione(Relacion relacione) {
		this.relacione = relacione;
	}

	public Responsable getResponsable() {
		return this.responsable;
	}

	public void setResponsable(Responsable responsable) {
		this.responsable = responsable;
	}

}